import * as api from '../api/user'

export function getUser (...param) {
  return dispatch => {
    api.getUserInfo(...param).then((data) => {
      dispatch({ type: 'SET_USER', payload: data })
    })
  }
}

